
  function  dateConvert(time){
  let newTime = time;
  let newDate = new Date(newTime);
  let year = newDate.getFullYear();
  let month = newDate.getMonth()+1;
  let day = newDate.getDate();
  let hour = newDate.getHours();
  hour=hour>9?hour:'0'+hour;
  let min = newDate.getMinutes();
  min=min>9?min:'0'+min;
  let sec = newDate.getSeconds();
  sec=sec>9?sec:'0'+sec;

    return `${year}-${month}-${day} ${hour}:${min}:${sec}`



}

export {dateConvert};
